<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Log Page creator</title>
<link rel="stylesheet" type="text/css" href="css/style.css" media="screen" title="bbxcss" />
<style type="text/css">
</style>
</head>
<body>
<p style="left:10px; position:absolute; top:10px;"><a href="#start">&laquo; Back</a></p>
<form id="start" action="/create" method="post">
	<h1>Log Page creator</h1>
	<p>
		<label for="name">Log Content</label>
		<textarea id="logname" name="logname" type="text"></textarea>
	</p>
	<div id="options">
		<p class="show">
			<a href="#options">more options</a>
		</p>
		<p class="hide">
			<a href="#start">base options</a>
		</p>
		<p>
			<label for="zipcode">Code Postal</label>
			<input id="zipcode" type="text" />
		</p>
		<p>
			<label for="town">Ville</label>
			<input id="town" type="text" />
		</p>
		<p>
			<label for="country">Pays</label>
			<select id="country">
				<option>France</option>
				<option>Allemagne</option>
				<option>Angleterre</option>
				<option>Espagne</option>
				<option>Italie</option>
				<option>Pays-Bas</option>
				<option>Russie</option>
				<option>Suède</option>
			</select>
		</p>
	</div>
	<!-- Bouton de soumission habituel. Je l'ai commenté pour pouvoir afficher ma div "finish" avec la pseudo-classe :target -->
	<!--p>
		<input type="submit" value="Envoyer" /> ou <a href="#form">annuler</a>
	</p-->
	<p>
		<a class="submit" href="#finish" onclick="return directSumbit();">Submit</a> or <a href="#start" onclick="document.getElementById('start').reset();">reset</a>
	</p>
	<div id="finish">
		<p id="reslutP">&nbsp;
		</p>
	</div>
</form>
<p id="credits"><a href='output' target=_blank >Show All Log Page</a><br />
©2012 Alan</p>
<script type="text/javascript">
function directSumbit() {
	//alert('afdaf');
	document.getElementById('reslutP').innerHTML = 'Loading...';
	var form = (document.getElementById('start'));
	//alert(form);
	form.submit();
}
</script>
</body>
</html>